package com.beemans.common.app.ui.activities

import com.beemans.common.app.ui.base.BaseActivity
import com.beemans.common.ext.jumpActivity
import com.blankj.utilcode.util.ActivityUtils
import com.tiamosu.databinding.page.DataBindingConfig

/**
 * @author tiamosu
 * @date 2021/3/18.
 */
class SplashActivity : BaseActivity() {

    override fun getDataBindingConfig(): DataBindingConfig {
        return DataBindingConfig(0)
    }

    override fun isLaunchPage(): Boolean {
        return true
    }

    override fun initEvent() {
        jumpActivity {
            ActivityUtils.startActivity(MainActivity::class.java)
        }
    }

    override fun onStop() {
        super.onStop()
        ActivityUtils.finishActivity(this)
    }

    override fun doBusiness() {
    }
}